package com.gigmissions.client;

import com.extjs.gxt.ui.client.widget.form.FormPanel;
import com.extjs.gxt.ui.client.widget.form.TextField;
import com.extjs.gxt.ui.client.widget.layout.FormData;
import com.google.gwt.maps.client.MapWidget;

public class VenueDetailsPanel extends FormPanel {
	
	
	private boolean editable = false;
	private MapWidget map;
	private String nameLabel = "Name";
	private String addressLabel = "Address";
	private FormData formData = new FormData("-10"); 
	private TextField<String> venueAddress = new TextField<String>();
	private TextField<String> venueName = new TextField<String>(); 
	
	public VenueDetailsPanel(boolean editable, MapWidget map){
		
		this.editable = editable;
		this.map = map;
		constructUI();
		
	}
	
	
	public TextField<String> getVenueName() {
		return venueName;
	}
	
	
	public TextField<String> getVenueAddress() {
		return venueAddress;
	}

	
	public void constructUI(){
		
		  
		setHeading("Add Venue");  
		setFrame(true);  
		setWidth(350);  
		
		 
		venueName.setFieldLabel(nameLabel);  
		venueName.setAllowBlank(false);
		
		  
		venueAddress.setFieldLabel(addressLabel);  
		venueAddress.setAllowBlank(false);  
		
		add(venueName,formData);
		add(venueAddress,formData);
		
		
		
		
	}

}
